// src/api/home.js
import httpInstance from "@/utils/http";

// 封装banner 的接口函数
export const getBannerAPI = () => {
  return httpInstance({
    url: '/home/banner',
  });
};

// 封装获取新鲜好物接口函数
export const findNewAPI = () => {
  return httpInstance({
    url: '/home/new',
  });
};

// 封装获取人气推荐接口函数
export const getHotAPI = () => {
  return httpInstance({
    url: '/home/hot',
  });
};

// 封装获取商品数据接口函数
export const getGoodsAPI = () => {
  return httpInstance({
    url: '/home/goods',
  });
};


